package data;

import java.util.HashMap;
import java.util.Map;

public class TMC_List {
    public  static HashMap<String, TMC> allTMCMap = new HashMap <String, TMC>();

    public TMC searchTMCByInvNumber (String invNumber){
        if (allTMCMap.containsKey(invNumber)){
            return (TMC) allTMCMap.get(invNumber);
        }
        return null;
    }

    public void addTMC (TMC tmc){
        allTMCMap.put(tmc.getInventoryNumber(), tmc);
    }

}
